<!doctype html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml" xmlns:v-on="http://www.w3.org/1999/xhtml" xmlns:v-model="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>

<div id="app">
    <ul>
        <li v-for="n of evenNumbers">{{n}}</li>
    </ul>
    <ul>
        <li v-for="n of even(list)">{{n}}</li>
    </ul>
</div>
</body>
<script src="../../vender/vue@2.4.2.js"></script>
<script>

    var app=new Vue({
        el:'#app',
        data:{
            list:[0,1,2,3,4,5,6,7,8,9]
        },
        computed:{
            evenNumbers:function(){
                return this.list.filter(n=>0==n%2);
            }
        },
        methods:{
            even: function (list) {
                return list.filter(n=>0==n%2);
            }
        }
    });

</script>
</html>